import axios from 'axios'

import { HOST } from '@/common/js/common.js'

export function getBanner () {
  const url = HOST + '/banner'
  return axios.get(url)
}

// 热门歌单
export function getDiscList () {
  const url = HOST + '/personalized'
  return axios.get(url)
}

// 获取精品歌单
export function getBoutiqueList (limi) {
  const url = HOST + `/top/playlist?order=hot&limit=${limi}`
  return axios.get(url)
}

// 获取歌单内歌曲
export function getBoutiqueSing (id) {
  const url = HOST + `/playlist/detail?id=${id}`
  return axios.get(url)
}
// `/playlist/detail?id=${id}`
